<template>
  <p>这里是异步加载的组件</p>
</template>
<script setup>
const sleep = () => new Promise((resolve) => {
  setTimeout(resolve, 2000)
})
const res = await sleep();
</script>